from flask import Flask, render_template

app = Flask(__name__)

my_list = [
    {"id": 1, "value": "我爱工作"},
    {"id": 2, "value": "工作使人快乐"},
    {"id": 3, "value": "沉迷于工作无法自拔"},
    {"id": 4, "value": "日渐消瘦"},
    {"id": 5, "value": "以梦为马，越骑越慢"},
]


@app.route("/")
def helloworld():
    response = render_template("Ademo12_practice.html", my_list=my_list)
    return response


if __name__ == "__main__":
    app.run(debug=True)
